<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script type="text/javascript">

        function uploadFile(){

        }

    </script>

</head>
<body>

<!--<input id="upfile" type="file" webkitdirectory directory multiple/>-->
<input id="upfile" type="file" webkitdirectory mozdirectory directory multiple/>
<script type="text/javascript">
    document.getElementById("upfile").addEventListener("change", function (event) {
            debugger
            const files = event.target.files;
        }
    )
</script>
</body>
</html>